From c4b24a696080bd8366adf35aa4330d84a6822d5d Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sat, 19 Apr 2008 12:11:54 +0000 Subject: [PATCH] stmsdf: Fix ..printf parameters for MSVC. Before we got always a altitude of ZERO. --- stmsdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stmsdf.c b/stmsdf.c index 76c7c3edf..ac69fd232 100644 --- a/stmsdf.c +++ b/stmsdf.c @@ -605,7 +605,7 @@ static void track_disp_custom_cb(const waypoint *wpt) { if (wpt->creation_time && (wpt->altitude != unknown_alt)) { - gbfprintf(fout, "%lu,%.f\n", wpt->creation_time - start_time, wpt->altitude); + gbfprintf(fout, "%d,%.f\n", (int)(wpt->creation_time - start_time), wpt->altitude); } } -- 2.30.2